//
//  ViewController.swift
//  TT_Swift
//
//  Created by Lenny on 16/5/10.
//  Copyright © 2016年 Lenny. All rights reserved.
//

import UIKit
//import AFNetworking

typealias Succee = (NSURLSessionDataTask!,AnyObject!)->Void
typealias Failure = (NSURLSessionDataTask!,NSError!)->Void

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        self.view.backgroundColor = UIColor.whiteColor()
        let testV:UIView = UIView()
        self.view.addSubview(testV)
        testV.backgroundColor = UIColor.redColor()
        testV.snp_makeConstraints { (make) -> Void in
            
            make.height.width.equalTo(100)
            make.center.equalTo(self.view)
        }
        
        let label:UILabel = UILabel()
        self.view.addSubview(label)
        label .snp_makeConstraints { (make) -> Void in
            make.top.equalTo(100)
            make.left.equalTo(100)
        }
        
//        let http:Http = Http();
//        http.getDate()
        
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
}

